<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/11/29
 * Time: 20:26
 */

$client = new swoole_redis();

$client->connect('127.0.0.1', 6379, function (swoole_redis $redis, $result) {
    echo 'connect' . PHP_EOL;
    var_dump($result);
});